from django.db import models

# Create your models here.

class User(models.Model):
    email = models.EmailField()
    password = models.CharField(max_length=160)
    state = models.SmallIntegerField(default=0)
    c_time = models.DateTimeField(verbose_name='创建时间',auto_now_add=True)
    u_time = models.DateTimeField(verbose_name='修改时间',auto_now=True)

    class Meta:
        db_table = 'user'